package com.gxa.eshops.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.eshops.portal.entity.domain.Goods;
import com.gxa.eshps.cores.exception.BusinessException;


/**
 * @program: IntelliJ IDEA
 * @description:
 * @author: Mr.Wang
 * @create: 2022-07-08 09:43
 **/
@SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
public interface GoodsService extends IService<Goods> {


    /**
     * 用户信息来自当前线程
     * @param id id 商品编号
     * @return {@code Boolean}
     * @throws BusinessException 业务异常
     */
    Boolean secondKill(Long id) throws BusinessException;

}
